package com.scsj.cloud.authority.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.scsj.cloud.authority.service.SysBaseService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/scsj/authority/url")
@Api(value = "url相关(各微服务的接口信息)")
public class SysUrlController {
	
	@Autowired
	private SysBaseService baseService;
	
	@GetMapping(value = "/initUrl")
	@ApiOperation(value = "从eureka上获取各服务的接口信息初始化到数据库", notes = "参数：无")
	public void initUrl() {
		
		this.baseService.initUrlToMysql();
	}
	
	
	
	
	
	
	
	
	
}
